﻿using Sirenix.OdinInspector;
#if UNITY_EDITOR
using UnityEditor;
#endif
using UnityEngine;

namespace Gp.Scripts.Data {
    public abstract class BaseEntityConfigObject : IEntityConfig
    {
        public int GetID() => 0;
        public string GetIconName()
        {
            throw new System.NotImplementedException();
        }

        public abstract string ItemName { get; set; }
        
        public abstract string Description { get; set; }
        
        public abstract Sprite Icon { get; set; }
        
        [ReadOnly, PropertyOrder(-150)] [SerializeField]
        private string id;
        private string itemName;
        public string GetName()
        {
            return ItemName;
        }

        public string GetDesc()
        {
            return ItemName;
        }

        public virtual string FilePath() => "";
    }
}